<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主题列表</title>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
            font-size: 14px;
            line-height: 1.42857143;
            background-color: #d5fffd;
        }
        .navcolor{
            background-color: #c5eaff;
        }
        [class*="col-"] {
            padding-top: 15px;
            padding-bottom: 15px;
            background-color: #eee;
            background-color: rgba(86,61,124,.15);
            border: 1px solid #ddd;
            border: 1px solid rgba(86,61,124,.2);
        }

    </style>
</head>
<body>
<br>
<br>
<br>
<nav class="navbar navcolor navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="admin.jsp">VoteSys投票系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="messagelist.html">主页</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <br>
                <li>用户：？？？您好</li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>
<div class="container">
    <h1>
        主题列表
    </h1>
    <div class="row">
        <div class="col-md-6">
            <table class="table table-striped">
            	<s:iterator value="#request.topicList" status="statu">
	                <thead>
	                <tr>
	                    <th>主题号</th>
	                    <th>主题名称</th>
	                    <th>主题状态</th>
	                    <th>操作</th>
	                </tr>
	                </thead>
	                <tbody>
	                <tr>
	                    <td><s:property value="topicId"/></td>
	                    <td><s:property value="topicName"/></td>
	                    <td><s:property value="flag"/></td>
	                    <td><a href="ShowTopic?topicid=<s:property value="topicId"/>"><button>修改</button></a><button>删除</button></td>
	                    
	                </tr>
        		</s:iterator>
            </table>
        </div>
        <br>
    </div>
    <br>
    <a href="NewTopic"><button class="btn btn-info">新增主题</button></a>
</div> <!-- /container -->
<script src="bootstrap/jquery-1.9.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/less/navbar.less"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
